<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ page import="java.util.List"%>
<%@ page import="java.util.Calendar"%>
<%@ page import="java.text.SimpleDateFormat"%>
<link rel="stylesheet" href="${ path }/dwz/FusionCharts/Contents/Style.css" type="text/css" />
<script type="text/javascript" src="${ path }/dwz/FusionCharts/JSClass/FusionCharts.js"></script>
<script type="text/javascript">

function submitForm(){
	var flag = false;
	$(".required",navTab.getCurrentPanel()).each(function(){
		if($(this).val()==""){
			$(this).focus();
			flag = true;
		}
	});
	if(flag){
		alert("您有必选项没有填写请确认");
		return false;
	}
	$("#pagerFindForm",navTab.getCurrentPanel()).submit();
}
</script>
<div class="pageHeader">
	<form id="pagerFindForm" onsubmit="if(this.action != '${path }/statistics/queryaction!queryReport.action'){this.action = '${path }/statistics/queryaction!queryReport.action' ;};return navTabSearch(this); " action="${path }/statistics/queryaction!queryReport.action" method="post" class="pageForm required-validate" rel="pagerForm">
	<div class="searchBar">
	  <table class="pageFormContent">
		<tr>
		<td>
						<label>
							标题：
						</label>
						<input type="text" name="filter_and_title_LIKE_S"
							value="${filter_and_title_LIKE_S }" />
					</td>
			<td>
				<label>创建时间：</label>
				<input type="text" name="filter_and_createTime_GE_T"  id="d2111" style="width: 170px;" onFocus="WdatePicker({minDate:'2010-01-01',maxDate:'#F{$dp.$D(\'d2112\')}'})" class="required" readonly="readonly" value="${actionMap['filter_and_createTime_GE_T']}" /><a class="inputDateButton" href="javascript:;" >选择</a>
			</td>
			<td>
				<label>至：</label>
				<input type="text" name="filter_and_createTime_LE_T" id="d2112" style="width: 170px;" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'d2111\')}'})" readonly="readonly" value="${actionMap['filter_and_createTime_LE_T']}" /><a class="inputDateButton" href="javascript:;">选择</a>
				<input type="hidden" name="configId" value="${actionMap['configId'] }">
			</td>
          <td width="100px;">
           <div class="subBar">
            <ul>
			  <li><div class="buttonActive"><div class="buttonContent"><button type="button" onclick="submitForm()">查找</button></div></div></li>
			  <li><div class="buttonActive"><div class="buttonContent"><button type="button" id="clearText">重置</button></div></div></li>
			</ul>
			</div>
		  </td>
		</tr>
	  </table>
	</div>
	</form>
  </div>
	<div class="tabs">
		<div class="tabsHeader">
			<div class="tabsHeaderContent">
				<ul>
					<li><a><span>报表</span></a></li>
					<li><a><span>柱图</span></a></li>
					<li><a><span>线图</span></a></li>
				</ul>
			</div>
		</div>
    <div class="tabsContent" style="background-color:#FFF">
	<div style="width:100%">
		<div id="jbsxBox" class="unitBox">
			<div class="pageContent">
				<div class="panelBar">
					<jsp:include page="/common/pagination.jsp" />
					<ul class="toolBar">
					<li><a class="add" href="${path }/xyxyDown/teaProgramAction!addTeaProgram.action" target="navTab"><span>添加</span></a></li>
					<li><a class="delete" href="${path}/xyxyDown/teaProgramAction!deleteTeaProgram.action"  rel="ids" postType="string" title="确定要删除吗?" target="selectedTodo"><span>删除</span></a></li>
					
					<c:if test="${page.results != null && !empty page.results }">
						<web:exportExcelTag4Jdbc 
										pagerFormId="pagerFindForm" 
										pagerMethodName="queryResults" 
										actionAllUrl="org.hpin.statistics.briefness.web.QueryAction" 
										informationTableId="exportTable"
										configId="stat10"
										fileName="stat10"
										></web:exportExcelTag4Jdbc>
					</c:if>
					</ul>
				</div>					
				<table class="list" width="100%" layoutH="156" id = "exportTable"> 
				   <thead>
					<tr>
						<th>序号</th>
					    <th export = "true" columnIndex = "0" columnChName = "标题">标题</th> 
					    <th export = "true" columnIndex = "1" columnChName = "创建日期">创建日期</th>
					    <th export = "true" columnIndex = "2" columnChName = "添加人">添加人</th> 
					    <th export = "true" columnIndex = "3" columnChName = "访问次数">访问次数</th>
					</tr>
				  </thead>
				  <tbody>
					<c:forEach items="${page.results }" var="teaprogram" varStatus="status">
					  <tr>
					  	<td>${status.count }</td>
						<td align="center">${teaprogram[1] }</td>
						<td align="center">${teaprogram[2]}</td>
						<td align="center">${teaprogram[3] }</td>
						<td align="center">${teaprogram[4]}</td>
					  </tr>
					</c:forEach>
					</tbody>
				  </table>
			  </div>
		</div>
	</div>
	<!-- 柱图 -->
	<div id="column">
	<table align="center" style="z-index: 999999;">
   	  <tr>
   		<td>
		  <jsp:include page="/dwz/FusionCharts/Includes/FusionChartsHTMLRenderer.jsp" flush="true">
			<jsp:param name="chartSWF" value="${path}/FusionCharts/Charts/MSColumn3D.swf" />
			<jsp:param name="strXML" value="${actionMap['dataXml']}" />
			<jsp:param name="chartId" value="column_memberImport" /> 
			<jsp:param name="chartWidth" value="800" />
			<jsp:param name="chartHeight" value="400" />
			<jsp:param name="debugMode" value="false" />
		  </jsp:include>
   		</td>
   	  </tr>
   	</table>
   	</div>
	<!-- 线图 -->
	<div id="line">
	<table align="center">
   	  <tr>
   		<td>
		  <jsp:include page="/dwz/FusionCharts/Includes/FusionChartsHTMLRenderer.jsp" flush="true">
			<jsp:param name="chartSWF" value="${path}/FusionCharts/Charts/MSLine.swf" />
			<jsp:param name="strXML" value="${actionMap['dataXml']}" />
			<jsp:param name="chartId" value="line_memberImport" /> 
			<jsp:param name="chartWidth" value="800" />
			<jsp:param name="chartHeight" value="400" />
			<jsp:param name="debugMode" value="false" />
		  </jsp:include>
   		</td>
   	  </tr>
   	</table>
	</div>
  </div>
</div>